<include file="Layout/header" />
<body>
<div class="breadcrumbs" id="breadcrumbs"> 
  <script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>
  <ul class="breadcrumb">
    <li> <i class="icon-home home-icon"></i> <a href="{:U('Admin/Index/welcome')}">首页</a> </li>
    <li class="active">开奖管理</li>
  </ul>
</div>
<div class="page-content">
  <div class="page-header">
    <h1> 彩票管理 <small> <i class="icon-double-angle-right"></i> 开奖管理 </small> </h1>
  </div>
  <div class="">
    <div class="tabbable">
      <ul class="nav nav-tabs" id="myTab">
        <foreach name="lottry_array" item="val" key="key">
           <li>
              <if condition="$key eq $c_id">
             <a class="btn btn-primary" href="{:U('Admin/Lottryodds/lottery_results',array('c_id'=>$key))}">{$val.text}</a>
              <else />
              <a class="btn btn-info" href="{:U('Admin/Lottryodds/lottery_results',array('c_id'=>$key))}">{$val.text}</a>
               </if>
          </li>
         </foreach>
      </ul>
      <div class="tab-content">
        <div class="table-responsive dataTables_wrapper"> 
          <!-- <include file="Layout/{$tpl}" />-->
            <form method="get" action="{:U('Admin/Lottryodds/lottery_results',array('c_id'=>$c_id))}">
      <table class="table table-striped table-bordered table-hover table-condensed">
        <tbody><tr>
          
          
           <th width="30%"> 
            <div class="col-xs-3">
              <div class="input-group input-group-sm">
                <input id="datepicker" class="form-control hasDatepicker" name="strtime" type="text" value="<?php echo $_GET['strtime'];?>">
                <span class="input-group-addon"> <i class="icon-calendar"></i> </span> </div>
             </div>
            
           
          </th>
          <td width="20%"><input class="btn btn-success" type="submit" value="搜索"></td>
        </tr>
      </tbody></table>
    </form>
             
            <table class="table table-center table-striped table-bordered table-hover dataTable">
              <thead>
                <tr>
                  <th>彩票类别</th>
                  <th>彩票期号</th>
                  <th>开奖时间</th>
                  <th>一</th>
                  <th>二</th>
                  <th>三</th>
                  <th>和</th>
                </tr>
              </thead>
              <tbody>
              <foreach name="data" item="v" key="k">
                <tr>
                  <td>{$v.c_name}</td>
                  <td>{$v.c_no}</td>
                   <td><?php echo date('Y-m-d H:i:s',$v['add_time']);?></td>
				  <foreach name="v.ball" item="b">
                  <td>{$b}</td>
                  </foreach>
                 
                  <td>{$v.sum}</td>
                </tr>
               </foreach>  
              </tbody>
            </table>
             
       
        </div>
        
        <!-- /.table-responsive --> 
      </div>
    </div>
  </div>
  <!-- /.table-responsive --> 
</div>
<div >{$page}</div>
</div>
</div>
<include file="Layout/js"/> 
<script src="__ADMIN_JS__/bootbox.js"></script>
<link href="__ADMIN_CSS__/datepicker.css" rel="stylesheet" />
<script src="__ADMIN_JS__/date-time/bootstrap-datepicker.min.js"></script>
<script type="text/javascript">
			jQuery(function($) {
				$("#datepicker").datepicker({
					showOtherMonths: true,
					selectOtherMonths: false,
					 
				});
				 
			
			
  				
			})
 		</script> 
</body>
</html>